﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace xDataSet
{
    [Serializable]
    public class xParameter
    {

        //名称
        string mName = "";
        /// <summary>
        /// 参数的名称，一般SQL语句带":"，存储过程不需要带":"
        /// </summary>
        public string Name
        {
            get { return mName; }
            set { mName = value; }
        }


        object mData = "";
        /// <summary>
        /// 传入的数据数值
        /// </summary>
        public object Data
        {
            get { return mData; }
            set { mData = value; }
        }

        
        public xParameter() { }

        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="pName">参数的名称，一般SQL语句带":"，存储过程不需要带":"</param>
        /// <param name="pData">数据数值</param>
        public xParameter(string pName, object pData)
        {
            mName = pName;
            mData = pData;

        }
    }
}